 class Demo{


public static void show()
{
Demo d=new Demo();
//return d;
System.out.println("hello java.......");
}

}
class Demo1 extends Demo{

public static void main(String []args){

Demo1 d=new Demo1();
d.show();
}
}